-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Fixes truncated error message "C extension: umpy.core.multiarray failed to import" #16366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes truncated error message "C extension: umpy.core.multiarray failed to import" #16366
Conversation
…ed to import" This occurred because lstrip is the wrong tool here: >>> e = 'cannot import name numpy.core.multiarray' >>> str(e).lstrip('cannot import name ') 'umpy.core.multiarray' Better: >>> str(e).replace('cannot import name ', '') 'numpy.core.multiarray'
can you post a minimal example that repros the incorrect message? |
Codecov Report
@@ Coverage Diff @@
## master #16366 +/- ##
==========================================
- Coverage 90.38% 90.36% -0.02%
==========================================
Files 161 161
Lines 50916 50916
==========================================
- Hits 46021 46011 -10
- Misses 4895 4905 +10
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16366 +/- ##
==========================================
- Coverage 90.38% 90.36% -0.02%
==========================================
Files 161 161
Lines 50916 50916
==========================================
- Hits 46021 46011 -10
- Misses 4895 4905 +10
Continue to review full report at Codecov.
|
Here's how I can reproduce it - by installing pandas 0.18 on my OSX (latest). I don't know why I get the error - I don't have pandas or numpy installed in the system-wide python or anything. I don't get the error message with pandas 0.21.1. But the actual error is by the by, as no doubt there are a few ways this can crop up.
|
thanks! |
This occurred because lstrip is the wrong tool here:
Better:
--
git diff upstream/master --name-only -- '*.py' | flake8 --diff